<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <h:head>
        <title>İhale Yönetim Sistemi</title>
       <link href="../style.css" rel="stylesheet" type="text/css"></link>
        <div style="text-align: center;"><h:graphicImage url="/Images/header.png"></h:graphicImage></div>

    </h:head>
     <h:body>
        <h:form prependId="false">
            <div id="wrapper">
                <div id="logo">

                </div>
                <div id="header">
                    <!-- 		<div id="menu">
                    
                            </div>    -->
                </div>
                <div class="page">
                    <div id="page-bgtop">

                        <div id="dummy"></div>
                        <p:panel id="panelsidebar" header="Menu">
                            <ui:include src="MenuAdmin.xhtml"/>
                                                                           
                        </p:panel>

                   
                        <!-- end #sidebar -->

                        <div id="content">
                            <p:panel id="eklemepaneli" header="Tedarikçi Güncelleme Sayfası">
      
            <p:dataTable id="tedarikci" var="tedarikci" value="#{tedarikciBean.tedarikciListesi}" paginator="true" rows="10"
                    selection="#{tedarikciBean.secilenTedarikci}" selectionMode="single"
                        onRowSelectUpdate="tedarikciGüncelle" onRowSelectComplete="tedarikciGuncelle.show()" >
  
      <f:facet name="header">  
            <p:outputPanel>  
                <h:outputText value="Tedarikçi Listesi:" />  
                
            </p:outputPanel>  
        </f:facet>  
  
             <p:column sortBy="#{tedarikci.id}" filterBy="#{tedarikci.id}" style="width:16px">
                                        <f:facet name="header">
                                            <h:outputText value="Id" />
                                        </f:facet>
                                        <h:outputText value="#{tedarikci.id}" />
              </p:column>
                <p:column sortBy="#{tedarikci.sirketAdi}" filterBy="#{tedarikci.sirketAdi}" style="width:16px">
                                        <f:facet name="header">
                                            <h:outputText value="Şirket" />
                                        </f:facet>
                                        <h:outputText value="#{tedarikci.sirketAdi}" />
              </p:column>
          <p:column sortBy="#{tedarikci.ilgiliKisi}" filterBy="#{tedarikci.ilgiliKisi}" style="width:16px">
                                        <f:facet name="header">
                                            <h:outputText value="İlgili Kişi" />
                                        </f:facet>
                                        <h:outputText value="#{tedarikci.ilgiliKisi}" />
              </p:column>
           
             <p:column sortBy="#{tedarikci.webSite}" filterBy="#{tedarikci.webSite}" style="width:16px">
                                        <f:facet name="header">
                                            <h:outputText value="Web Sitesi" />
                                        </f:facet>
                                        <h:outputText value="#{tedarikci.webSite}" />
              </p:column>
             <p:column sortBy="#{tedarikci.kullaniciAdi}" filterBy="#{tedarikci.kullaniciAdi}" style="width:16px">
                                        <f:facet name="header">
                                            <h:outputText value="Kullanıcı Adı" />
                                        </f:facet>
                                        <h:outputText value="#{tedarikci.kullaniciAdi}" />
              </p:column>
             
  
      </p:dataTable>  
  
</p:panel> 
               
                            
          <p:dialog header="Tedarikçi Düzenle" widgetVar="tedarikciGuncelle" resizable="false"  
              width="300" showEffect="explode" hideEffect="explode">  
  
        <h:panelGrid id="tedarikciGüncelle" columns="2" cellpadding="4">  
         
            <h:outputText value="Şirket Adı: "></h:outputText> <h:inputText value = "#{tedarikciBean.secilenTedarikci.sirketAdi}" ></h:inputText>                                      
            <h:outputText value="Web Adresi: "></h:outputText> <h:inputText value = "#{tedarikciBean.secilenTedarikci.ilgiliKisi}" ></h:inputText>                                      
            <h:outputText value="Adres-Tel: "></h:outputText> <h:inputText value = "#{tedarikciBean.secilenTedarikci.webSite}" ></h:inputText>                                      
            <h:outputText value="İlgili Kişi: "></h:outputText> <h:inputText value = "#{tedarikciBean.secilenTedarikci.adres}" ></h:inputText>                                      

            <p:commandButton value="Sil"  ajax="false" actionListener="#{tedarikciBean.silTedarikci}" ></p:commandButton> 	
            <p:commandButton value="Güncelle"  ajax="false" actionListener="#{tedarikciBean.guncelleTedarikci}" ></p:commandButton> 	
            
        </h:panelGrid>  
    </p:dialog>           
                            <p:messages/>
                           

                        </div>
                        <!-- end #content -->

                        <div style="clear: both;">&nbsp;</div>
                    </div>

                    <!-- end #page -->

                </div>
                <div id="footer-bgcontent">
                    <div id="footer" align="center">
                        <p>İHALE YÖNETİM SİSTEMİ - 2011</p>
                    </div>
                </div>
                <!-- end #footer -->
            </div>
        </h:form>>
    </h:body>
</html>


